﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Input;

namespace GuestList.Commands
{
    public class GestureCmd : RelayCmd
    {
        public GestureCmd(Action execute, Predicate canExecute, UIElement uiElement, InputGesture gesture)
            : base(execute, canExecute)
        {
            uiElement.InputBindings.Add(new InputBinding(this, gesture));
        }
    }
}
